Emberveil sourcegame/2006Scape Server/src/main/java/org/apollo/net/update/ChannelRequest.java
package org.apollo.net.update;
import io.netty.channel.Channel;
/**
* A specialised request which contains a channel as well as the request object itself.
*
* @author Graham
* @param <T> The type of request.
*/
public class ChannelRequest<T> {
/**
* The channel.
*/
private final Channel channel;
/**
* The request.
*/
protected final T request;
/**
* Creates a new channel request.
*
* @param channel The channel.
* @param request The request.
*/
public ChannelRequest(Channel channel, T request) {
this.channel = channel;
this.request = request;
}
/**
* Gets the channel.
*
* @return The channel.
*/
public Channel getChannel() {
return channel;
}
/**
* Gets the request.
*
* @return The request.
*/
public T getRequest() {
return request;
}
}